package 枚举;

/**
 * @author DGW-PC
 * @data   2018年10月4日
 */
public class EnumTest {

	public static void main(String[] args) {
		Week3 mon = Week3.MON;
		mon.show();
		//遍历
		for (Week week : Week.values()) {
			System.out.println(week.name());
		}
	}

	@SuppressWarnings("unused")
	private static void demo2() {
		Week2[] values = Week2.values();
		for (Week2 week2 : values) {
			System.out.println(week2);
		}
		Week2 mon = Week2.MON;
		System.out.println(mon.getName());
		System.out.println(mon.toString());
	}

	@SuppressWarnings("unused")
	private static void demo1() {
		System.out.println(Week.MON);
	}

}
